home *** CD-ROM | disk | FTP | other *** search
- /*
- * a header of the class FLAG
- * Copyright (C) 1996, 1997 Kazutaka Hirata <khirata@jove.acs.unt.edu>
- */
-
- #ifndef _FLAG_H_
- #define _FLAG_H_
-
- #include "typedef.h"
-
- class FLAG {
- uint m_f;
- public:
- FLAG(void)
- : m_f(0) {}
- FLAG(uint f)
- : m_f(f) {}
- FLAG(const FLAG& src)
- : m_f(src.m_f) {}
- // void operator=(int i) { m_f = i; }
- uint get(void) const { return m_f; }
- void set(uint f) { m_f = f; }
- void change(void) { m_f = !m_f; }
- };
-
- #endif /* _FLAG_H_ */
-